package com.norman.sorry.core.tiles;

import java.awt.Color;

/**
 * A factory class that provides methods to creating different types of slide.
 * 
 * @author Brian Norman
 * @version 0.0.1 beta
 * @since 0.0.1 beta
 */
public final class LinkedSlideFactory implements ISlideFactory<AbstractLinkedSlide> {

   /**
    * {@inheritDoc}
    * 
    * @see AbstractLinkedSlide#AbstractLinkedSlide(java.awt.Color)
    */
   @Override
   public AbstractLinkedSlide create(Color color) {
      return new LinkedSlide(color);
   }

   /**
    * Private concrete class for creating new instances of a linked slide.
    */
   private static final class LinkedSlide extends AbstractLinkedSlide {
      public LinkedSlide(Color color) {
         super(color);
      }
   }

}
